package com.rc.pojo.po.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class GameTableDef extends TableDef {

    public static final GameTableDef GAME = new GameTableDef();

    public final QueryColumn ID = new QueryColumn(this, "id");

    public final QueryColumn VIDEO = new QueryColumn(this, "video");

    public final QueryColumn CONTENT = new QueryColumn(this, "content");

    public final QueryColumn OPTIONS = new QueryColumn(this, "options");

    public final QueryColumn PICTURE = new QueryColumn(this, "picture");

    public final QueryColumn PLANT_ID = new QueryColumn(this, "plant_id");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, VIDEO, CONTENT, OPTIONS, PICTURE, PLANT_ID};

    public GameTableDef() {
        super("rc", "game");
    }

    private GameTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public GameTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new GameTableDef("rc", "game", alias));
    }

}
